<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="/WEB-INF/tld/role.tld" prefix="role"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<base href="<%=basePath%>">

		<title>用户列表</title>

		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
		<script type="text/javascript" language="javascript"
			src="<%=request.getContextPath()%>/js/jquery-1.3.2.js"></script>
		<script type="text/javascript">

		</script>
	</head>

	<body>
	<role:equal type="d">
		查看到测试权限标签<br/>
	</role:equal>
	【当前操作人员：<s:property value="#session.SESSION_USERMESSAGE.userName"/>】
	 用户列表：
		<table border="1">
			<tr>
					<td>
						登录名
					</td>
					<td>
						密码
					</td>
					<td>
						用户名
					</td>
					<td>
						状态
					</td>
					<td>
						权限Id
					</td>
					<td>
						权限名
					</td>
					<td>
						创建时间
					</td>
					<td>
						最后登录时间
					</td>
					<td>
						操作
					</td>
				</tr>
			<s:iterator value="userList">
				<tr>
					<td>
						<s:property value="userId" />
					</td>
					<td>
						<s:property value="userPassword" />
					</td>
					<td>
						<s:property value="userName" />
					</td>
					<s:if test="status==0">
						<td>启用</td>
					</s:if>
					<s:elseif test="status==1">
						<td>关闭</td>
					</s:elseif>
					<s:else>
						<td>未知状态</td>
					</s:else>
					<td>
						<s:property value="roleId" />
					</td>
					<td>
						<s:property value="roleType" />
					</td>
					<td>
						<s:property value="createTime" />
					</td>
					<td>
						<s:property value="lastLogin" />
					</td>
					<td>
						<a href="user/modifyUserById.action?userVO.userId=<s:property value="userId" />">修改</a>&nbsp;&nbsp;
						<a href="user/deleteUser.action?userVO.userId=<s:property value="userId" />">删除</a>
					</td>
				</tr>
			</s:iterator>
			<tr>
				<td></td>
			</tr>
		</table>
		<a href="pages/system/user_insert.jsp">新增用户</a>
	</body>
</html>
